//
//  DesModel.m
//  International_Hospital
//
//  Created by 李建强 on 16/7/6.
//  Copyright © 2016年 LiYiLin. All rights reserved.
//

#import "DesModel.h"



@implementation DesModel

+(instancetype)desModelWithDict:(NSDictionary*)dict{
    DesModel *model = [[DesModel alloc]init];
    [model setValuesForKeysWithDictionary:dict];
    return model;
}

-(NSArray *)desDataArray{
    NSString*path = [[NSBundle mainBundle]pathForResource:@"DesPlist.plist" ofType:nil];
    NSArray *tempArray = [NSArray arrayWithContentsOfFile:path];
    NSMutableArray *dataArray = [NSMutableArray array];
    
    for (NSDictionary*dict in tempArray) {
        DesModel *model = [DesModel desModelWithDict:dict];
        [dataArray addObject:model];
    }
    return dataArray.copy;
    
}


@end
